package com.sen.controller;

import com.sen.bean.KssUser;
import com.sen.bean.SysLoginUser;
import com.sen.mapper.KssUserMapper;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * Description:
 * Author: ergou
 * Version: 1.0
 * Create Date Time: 2022/1/23 22:43.
 * Update Date Time:
 *
 * @see
 */
@RestController
public class IndexController {

    @Resource
    private KssUserMapper kssUserMapper;

    @GetMapping("/getuser/{id}")
    public SysLoginUser getuser(@PathVariable("id") Long id) {
        return kssUserMapper.selectById(id);
    }


    @GetMapping("/listuser")
    public List<SysLoginUser> listuser() {
        return kssUserMapper.selectList(null);
    }

    @GetMapping("/listuser2")
    public List<SysLoginUser> listuser2() {
        return kssUserMapper.selectList(null);
    }


    @GetMapping("/index")
    public String index() {
        return "Jenkins太好了，棒棒搭11111111111!!! ";
    }

}
